//
//  LKRecordAudioCell.m
//  音视频合成demo
//
//  Created by VictorLiu on 2018/10/19.
//  Copyright © 2018 VictorLiu. All rights reserved.
//

#import "LKRecordAudioCell.h"
#import "NBRecordAudioModel.h"

@interface LKRecordAudioCell ()

@property (weak, nonatomic) IBOutlet UILabel *pathLabel;

@property (weak, nonatomic) IBOutlet UILabel *durationLabel;


@end

@implementation LKRecordAudioCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setAudioModel:(NBRecordAudioModel *)audioModel {
    
    _audioModel = audioModel;
    self.pathLabel.text = [NSString stringWithFormat:@"录音文件：%@", audioModel.path];
    self.durationLabel.text = [NSString stringWithFormat:@"录音时长：%ld", audioModel.duration];
}

- (IBAction)deleteButtonClicked:(id)sender {
    if (self.deleteBlock) {
        self.deleteBlock(self.audioModel, self.indexPath);
    }
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
